export const PAGE_CODE = 'dcs-afterSales-subClaimApply';
import {PAGE} from '../constants';
import {repairType, claimAthType, subClaimApplyStatus} from '../Enum';

export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    code: '',
    causePartCode: '',
    causePartName: '',
    vin: '',
    engineCode: '',
    transmissionSn: '',
    productCategoryCode: [],
    faultItemId: '',
    faultType: [],
    status: [],
    repairType: undefined,
    approverName: '',
    repairCode: '',
    submitTime: undefined,
    approveTime: undefined,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'createTime',
    isDesc: true
};
// 操作权限
export const PERMISSION = {
    approve: 'approve',
    add: 'add',
    submit: 'submit',
    update: 'update',
    abandon: 'abandon',
    historySearch: 'historySearch',
    queryExport: 'queryExport',
    adjust: 'adjust',
};
export const repairTypeSale = repairType.pick([
    repairType.车辆索赔,
    repairType.备件索赔
]);
export const repairTypeUnSale = repairType.pick([
    repairType.PDI索赔,
    repairType.售前索赔
]);
export const tuClaimAthType = claimAthType.pick([
    claimAthType.图片资料
]);
export const subClaimApplyStatusSale = subClaimApplyStatus.pick([
    subClaimApplyStatus.审核通过,
    subClaimApplyStatus.拒绝,
    subClaimApplyStatus.驳回,
]);
export const HISTORY_DEFAULT_QUERY_OPTION = {
    code: '',
    subDealerId: '',
    status: undefined,
    authType: undefined,
    vin: '',
    originTag: undefined,
    createTime: [],
    isDc: undefined,
    dealerClaimApplyCode: '',
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
export const PANEL_CARD_COL_SPAN = {
    xxl: 21,
    xl: 19,
    lg: 18,
    md: 18,
    sm: 18,
    xs: 18
};
